{%extends "base.html"%}
{%block body%}
<h2>Events</h2>

<a href="{%url views.newevent%}">Create a New Event</a><br/><br/>

<table class="sample">
	<tr>

	    <th>Action</th>
	    <th>Admin List</th><th>Add</th><th>List</th><th>Name</th><th>Website</th><th>Creation</th></tr>

{%for aevent in events%}
<tr class="{% cycle d0,d1 %}">

<td><a href="{%url views.deleteevent aevent.key.id%}">Delete</a></td>
<td><a href="{%url views.listevententries aevent.key.id%}">Admin List</a> </td>
<td><a href="{%url views.evententry aevent.key.id%}">Sign up</a> </td>
<td><a href="{%url views.SIMPLEexportevententriespaged aevent.key.id%}">Public List</a> </td>
<td><a href="{%url views.editevent aevent.key.id%}">{{aevent.name|escape}} </td>
<td>	{{aevent.website|escape}} </td>
<td>  - created {{aevent.created|date:"Y/m/d H:i:s"}} by {{aevent.racedirector}}</td>
</tr>

{%endfor%}
</table>

<a href="{%url views.newevent%}">Create a New Event</a>

{%endblock%}
